package com.fdb.efp.cus.service.dao;

import java.util.List;

import com.fdb.efp.cus.service.domain.CusHandoverLst;
import org.apache.ibatis.annotations.Param;

import com.fdb.efp.cus.service.vo.CusHandoverLstVO;
/**
 * <p>DAO interface:客户移交明细				<p>
 * @author chenqm1
 * @date 2018-05-14
 */
public interface CusHandoverLstDao {
	/**
	 * 批量插入客户移交明细
	 * @param cusHandoverLst
	 * @return
	 */
	public int insertCusHandoverLst(List<CusHandoverLst> cusHandoverLst);
	
	public int deleteByPk(CusHandoverLst cusHandoverLst);
	
	public int updateByPk(CusHandoverLst cusHandoverLst);
	
	public CusHandoverLst queryByPk(CusHandoverLst cusHandoverLst);
	
	public List<CusHandoverLst> queryBySerno(CusHandoverLst cusHandoverLst);
	
	public List<CusHandoverLst> queryAllOwnerByPage(CusHandoverLstVO cusHandoverLst);
	
	public List<CusHandoverLst> queryAllCurrOrgByPage(CusHandoverLstVO cusHandoverLst);
	
	public List<CusHandoverLst> queryAllCurrDownOrgByPage(CusHandoverLstVO cusHandoverLst);
	/**
	 * 根据客户移交申请流水号删除客户移交明细
	 * @param serno
	 * @return
	 */
	public int deleteByApplySerno(@Param("serno") String serno);
	/**
	 * 
	 * @param cusHandoverLst
	 * @return
	 */
	public List<CusHandoverLst> queryDetailsBySernoByPage(CusHandoverLstVO cusHandoverLstVO);
	/**
	 * 查询流水号下的客户ID集合
	 * @param serno
	 * @return
	 */
	public List<String> queryCusIdsBySerno(@Param("serno") String serno);
}
